package com.groupbuying.store.service;

import com.groupbuying.store.domain.StoreAccountRoleRelDO;

import java.util.List;
import java.util.Map;

/**
 * 商户角色和商户账号关联
 * 
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-01-29 09:58:09
 */
public interface StoreAccountRoleRelService {
	
	StoreAccountRoleRelDO get(String uuid);
	
	List<StoreAccountRoleRelDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreAccountRoleRelDO storeAccountRoleRel);
	
	int update(StoreAccountRoleRelDO storeAccountRoleRel);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);

	/**
	 * 删除角色权限根据角色id
	 * @param staffUuid
	 */
    void deleteRoleRelByAccountUuid(String staffUuid);

	/**
	 * 批量保存
	 * @param accountrelrolelist
	 */
	void batchCreate(List<StoreAccountRoleRelDO> accountrelrolelist);

	/**
	 * 根据商户账户uuid 查找 角色列表
	 * @param storeAccountUuid
	 * @return
	 */
	List<String> getRoleUuidListByStoreAccountUuid(String storeAccountUuid);
}
